<%@ Control Inherits="CVCommunity.Admin.Permission" %>
<%@ Register tagPrefix="forum" namespace="CVCommunity.Provider" assembly="CVCommunity.Provider"%>
<script language="javascript" src="../scripts/calendar.js"></script>

<form runat="server">
<div class="grid">
<table cellspacing="0" class="inner">
<tr class="forumno category">
<td>版块许可证设置</td>
</tr>
<tr class="forumtd">
<td bgcolor="#FFFFFF"><a href="?action=board&operation=list">版面列表</a></td>
</tr>
</table>
</div>

<asp:Panel ID="add" runat="server" Visible="false">
<div class="grid">
<table cellspacing='0' class="inner">
<tr bgcolor="#FFFFFF" class="forumno">
<td colspan="2"><strong>『<%=boardname%>』添加许可证</strong></td>
</tr>
<tr class="forumtd" style="font-size:12px">
<td width="300" style="padding-left:30px; margin-bottom:5px;" valign="top"><strong>用户</strong>&nbsp;<span class="t1">(多个用户用回车分割)</span><br />
<div style="padding:10px 0px">有效日期至&nbsp;<input name="expirty" value='' class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" style="width:80px" onclick="calendar.setHook(this)" maxlength="10" readonly="readonly"/>&nbsp;留空则为永久</div><asp:TextBox ID="Name" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" TextMode="MultiLine" Width="230" Height="280" runat="server" />
</td>
<td valign="top" class="forumno">&nbsp;&nbsp;&nbsp;<strong>用户组</strong><br />
<asp:CheckBoxList ID="grouplist" CssClass="smallbox" runat="server" /></td>
</tr>
<tr class="forumtd">
<td colspan="4" style="padding-left:30px;"><asp:Button Text="  提 交  " CssClass="button" runat="server" OnClick="Save" /></td>
</tr>
</table>
</div>
</asp:Panel>

<div class="grid">
<table cellspacing='0' class="inner">
<tr class="forumno">
<td><forum:anchor id="permitlist" text="&rsaquo;&rsaquo;&nbsp;本版许可证列表" runat="server" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<forum:anchor id="addpermit" text="&rsaquo;&rsaquo;&nbsp;添加许可证" runat="server" /></td>
</tr>
</table>
<asp:Panel ID="list" runat="server" Visible="false">
<table cellspacing='0' style="font-size:12px;" class="inner">
<tr class="forumtd">
<td colspan="2"><strong>『<%=boardname%>』许可证类别</strong></td>
</tr>
<tr class="forumtd">
<td class="smallbox forumno">
<asp:RadioButtonList ID="permittype" runat="server">
<asp:ListItem Value="0" Text="只允许<br /><span  class='t1'>(其它用户及用户组不能访问，只允许以下用户及用户组根据指定的权限访问)</span>" />
<asp:ListItem Value="1" Text="特别指定<br /><span  class='t1'>(其它用户及用户组也能访问，只是特别指定以下用户和用户组的访问权限)</span>" Selected="true" /></asp:RadioButtonList></td>
</tr>
</table>
<table cellspacing='0' style="font-size:12px;" class="inner">
<tr class="forumtd" bgcolor="#FFFFFF">
<td colspan="4">用户许可证</td>
</tr>
<tr class="forumtd">
<td width="10%">删除？</td>
<td>用户名</td>
<td width="28%">过期时间</td>
<td width="29%">访问权限</td>
</tr>
<asp:Repeater ID="userlist" runat="server">
<itemtemplate>
<tr class="forumtd">
<td><forum:Span id="box" class="smallbox" runat="server" /></td>
<td><forum:Span id="name" runat="server" /></td>
<td><forum:Span id="expirty" runat="server" /></td>
<td><forum:Anchor id="permission" Text="详情" runat="server" /></td>
</tr>
</itemtemplate>
</asp:Repeater>
</table>
<table cellspacing='0' style="font-size:12px;" class="inner">
<tr class="forumtd" bgcolor="#FFFFFF">
<td colspan="4"><strong>用户组许可证</strong></td>
</tr>
<tr class="forumtd">
<td width="10%">删除？</td>
<td width="33%">用户组</td>
<td width="28%">过期时间</td>
<td width="29%">访问权限</td>
</tr>
<asp:Repeater ID="group" runat="server">
<itemtemplate>
<tr class="forumtd">
<td><forum:Span id="box" class="smallbox" runat="server" /></td>
<td><forum:Span id="name" runat="server" /></td>
<td><forum:Span id="expirty" runat="server" /></td>
<td><forum:Anchor id="permission" Text="详情" runat="server" /></td>
</tr>
</itemtemplate>
</asp:Repeater>
</table><div class="forumtd" style="padding:5px; text-align:center"><asp:Button Text="  提 交  " CssClass="button" runat="server" OnClick="Delete" /></div>
</asp:Panel>
</div>
</form>